package com.helloUIBinder.client.widgets;


import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.*;

public class BlogAnnotationWidget extends Composite {

    private static BlogTextWidgetUiBinder uiBinder = GWT.create(BlogTextWidgetUiBinder.class);

    interface BlogTextWidgetUiBinder extends UiBinder<Widget, BlogAnnotationWidget> {
    }

    @UiField
    Anchor blogPostHeadLink;

    @UiField
    HTMLPanel blogPostTimeField;

    @UiField
    Anchor blogPostOwnerLink;

    @UiField
    Anchor blogPostThemeLink;

    @UiField
    Anchor blogPostCommentLink;

    @UiField
    Label blogPostText;

    @UiField
    Anchor blogPostFooterLink;

    public BlogAnnotationWidget() {
        initWidget(uiBinder.createAndBindUi(this));
        init();
    }

    private void init() {
        blogPostHeadLink.setText("OLOLOLOLO!!!!");
        blogPostText.setText("dfsdfsdfsd fsd fs s fsfsf sfsf sf sdfsdfsdfsffsdfsdfsd fsd fs s fsfsf sfsf sf sdfsdfsfsdfsdfsd fsd fs s fsfsf sfsf sf sdfsdfs" +
                "fsdfsdfsd fsd fs s fsfsf sfsf sf sdfsdfsfsdfsdfsd fsd fs s fsfsf sfsf sf sdfsdfsfsdfsdfsd fsd fs s fsfsf sfsf sf sdfsdfs" +
                "fsdfsdfsd fsd fs s fsfsf sfsf sf sdfsdfsfsdfsdfsd fsd fs s fsfsf sfsf sf sdfsdfsfsdfsdfsd fsd fs s fsfsf sfsf sf sdfsdfs" +
                "fsdfsdfsd fsd fs s fsfsf sfsf sf sdfsdfsfsdfsdfsd fsd fs s fsfsf sfsf sf sdfsdfsfsdfsdfsd fsd fs s fsfsf sfsf sf sdfsdfsfsdfsdfsd fsd fs s fsfsf sfsf sf sdfsdfs" +
                "fsdfsdfsd fsd fs s fsfsf sfsf sf sdfsdfsfsdfsdfsd fsd fs s fsfsf sfsf sf sdfsdfsfsdfsdfsd fsd fs s fsfsf sfsf sf sdfsdfs");
    }

    public static BlogTextWidgetUiBinder getUiBinder() {
        return uiBinder;
    }

    public Anchor getBlogPostHeadLink() {
        return blogPostHeadLink;
    }

    public HTMLPanel getBlogPostTimeField() {
        return blogPostTimeField;
    }

    public Anchor getBlogPostOwnerLink() {
        return blogPostOwnerLink;
    }

    public Anchor getBlogPostThemeLink() {
        return blogPostThemeLink;
    }

    public Anchor getBlogPostCommentLink() {
        return blogPostCommentLink;
    }

    public Label getBlogPostText() {
        return blogPostText;
    }

    public Anchor getBlogPostFooterLink() {
        return blogPostFooterLink;
    }

    public static void setUiBinder(BlogTextWidgetUiBinder uiBinder) {
        BlogAnnotationWidget.uiBinder = uiBinder;
    }

    public void setBlogPostHeadLink(Anchor blogPostHeadLink) {
        this.blogPostHeadLink = blogPostHeadLink;
    }

    public void setBlogPostTimeField(HTMLPanel blogPostTimeField) {
        this.blogPostTimeField = blogPostTimeField;
    }

    public void setBlogPostOwnerLink(String blogPostOwnerLink) {
        this.blogPostOwnerLink.setText(blogPostOwnerLink);
    }

    public void setBlogPostThemeLink(String blogPostThemeLink) {
        this.blogPostThemeLink.setText(blogPostThemeLink);
    }

    public void setBlogPostCommentLink(Anchor blogPostCommentLink) {
        this.blogPostCommentLink = blogPostCommentLink;
    }

    public void setBlogPostText(String blogPostText) {
        this.blogPostText.setText(blogPostText);
    }

    public void setBlogPostFooterLink(Anchor blogPostFooterLink) {
        this.blogPostFooterLink = blogPostFooterLink;
    }
}
